package day0319;

public class Test9 {
    public static void main(String[] args) {
        double[]  ss={5,9,6,4,3,4};
        System.out.println(ss[0]+ss[1]+ss[2]+ss[3]+ss[4]+ss[5]);


        double t=0;
        for(int i=0;  i<=5 ; i++) {
            t = t + ss[i];//执行6次
        }
        System.out.println(t);


    }
}
